from alg import Solution
from gen import generate_test_cases


def run_tests():
    sol = Solution()
    test_cases = generate_test_cases()
    for i, case in enumerate(test_cases, 1):
        print(f"测试用例 {i}:")
        print("输入:")
        print(f"equations: {case['equations']}")
        print(f"values: {case['values']}")
        print(f"queries: {case['queries']}")
        print("输出:")
        print(sol.calcEquation(case["equations"], case["values"], case["queries"]))
        print()


if __name__ == "__main__":
    run_tests()
